<?php

//$app['reddit']->doSomething();
/*
  |--------------------------------------------------------------------------
  | Application Routes
  |--------------------------------------------------------------------------
  |
  | Here is where you can register all of the routes for an application.
  | It's a breeze. Simply tell Laravel the URIs it should respond to
  | and give it the Closure to execute when that URI is requested.
  |
 */

Route::get('/', function() {
          return View::make('pages.home');
        }
);
Route::get('/about', function() {
          return View::make('pages.about');
        });


Route::get('/disclaimer', function() {
          return View::make('pages.disclaimer');
        });



Route::post('/', array('before' => 'csrf', 'uses'   => 'RedditController@startTIR'));

Route::get('/stat/{username}', 'RedditController@stat');
Route::get('/chart/{username}', 'ChartController@timeline');
Route::get('/cron/get', 'CronController@runGetComments');
Route::get('/cron/comments', 'CronController@runComments');
Route::get('/cron/time', 'CronController@runTimelines');
Route::get('/cron', 'CronController@runCron');